home *** CD-ROM | disk | FTP | other *** search
- ----- ATTR.COM -----
-
-
- The ATTR.COM utility fills a gap left by DOS Version 3.1's
- ATTRIB.COM utility. ATTRIB only changes the Read-Only file
- attribute for a file's directory entry. ATTR will change any or
- all of the following attributes:
- -- Archive bit
- -- System file bit
- -- Hidden file bit
- -- Read-only file bit
-
- ATTR allows the user to turn on or turn off any of these
- bits.
-
- For example, let's deal with a file named "GRIBIT.COM". To
- make this file "hidden" so it will not appear in a DIR listing,
- just do ATTR +H GRIBIT.COM (return). It won't show up in your
- directory listings anymore. If you want it to show up in the
- directory listings again, just do ATTR -H GRIBIT.COM (return).
- Or, if you have a sub-directory you want to hide, use ATTR +H on
- the sub- directory's name. You can still access the directory
- while it is hidden. If you want to mark all files in a directory
- as "hidden", just do ATTR +H *.* (return).
-
- The Archive bit is used by some backup routines to determine
- if a file has been backed up. In certain cases, this bit is used
- to determine whether or not the user may make another copy of a
- certain file or program. Before being backed up, the Archive bit
- for a file is set to "on"; after being backed up, it is set to
- "off". To make multiple backups of a file, simply use ATTR to set
- the Archive bit to "on". The format is ATTR +A GRIBIT.COM
- (return). Naturally, if the user wants to disallow a file from
- being backed up, the Archive bit may be set to "off" with
- ATTR -H GRIBIT.COM (return). Note that there are several
- varieties of copy protection which do not use this method at all.
- ATTR.COM will not work with them. All you can do is try and see if
- you get results.
-
- The System bit is a little more tricky, as system files (for
- example, IBMBIO.COM or IBMDOS.COM, which are System, Hidden, and
- Read-only) will not execute if the System bit is turned off. Be
- careful not to play around with the System bit if you don't have a
- recent backup made!
-
- To find out what the attributes of files are, use ATTR with
- just a filename specification, and no "+" or "-" characters.
- ATTR *.* (return) will show you the attributes of all files in
- the directory. Or, for example, ATTR *.COM (return) will show
- the attributes of all .COM files in the directory.
-
- ATTR.COM is from PC Magazine, June 10 1986, page 249 + ff.
-
- --B.E.Noblick, Columbus OH
-
-
-
- --R.W.Fowler, Columbus OH
-
-
-
- ATTR.COM is now distributed with a .ASM source file rather than the .BAS source
- as I received it. It has also been made to recognize but not change volume
- labels on diskettes, hard disks or RAM disks. If the effect of changing file
- attributes would be to set the same group of attributes already in effect for
- that file, ATTR does not change or list them.
- attributes would be to set the same grou